package com.zq.consumer.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

//import com.alibaba.dubbo.config.annotation.Reference;
import com.zq.service.TestService;
/**
 * 服务消费者Controller
 * @author usesp
 *
 */
@RestController
public class TestServiceController {
//	@Reference(version = "1.0.0")
	@DubboReference(version = "1.0.0")
	private TestService testServiceImpl;

	    @GetMapping("/ins")
	    public String ins(){
	        testServiceImpl.ins();
	        return "ins";
	    }

	    @GetMapping("/del")
	    public String del(){
	        testServiceImpl.del();
	        return "del";
	    }

	    @GetMapping("/upd")
	    public String upd(){
	        testServiceImpl.upd();
	        return "upd";
	    }

	    @GetMapping("/sel")
	    public String sel(){
	        testServiceImpl.sel();
	        return "sel";
	    }
}
